<script>
export default {
  name: "SingleInput",
  props: {
    houDelVO: Object,
    configItem: Object,
  },
  render() {
    const { houDelVO, configItem } = this;
    return (
      <el-input
        v-model={houDelVO[configItem.key]}
        class={{
          "reject-input": !houDelVO[configItem.key] && configItem.required,
        }}
      >
        {configItem.unit ? (
          <i slot="suffix" style="font-style: normal">
            {configItem.unit}
          </i>
        ) : null}
      </el-input>
    );
  },
};
</script>
<style></style>
